Conditions | 1 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /* eslint-disable promise/prefer-await-to-callbacks */ |
||
9 | constructor(options = {}) { |
||
10 | super(options); |
||
11 | this.name = options.name || 'console'; |
||
12 | this.eol = options.eol || os.EOL; |
||
13 | this.logger = options.logger || console; |
||
14 | this.fallBackLogger = options.fallBackLogger || defaultLogger; |
||
15 | this.handlers = options.levels || {}; |
||
16 | this.sanitizer = options.sanitizer || defaultSanitizer; |
||
17 | this.setMaxListeners(options.maxListeners || defaultMaxListeners); |
||
18 | } |
||
19 | |||
38 |